﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tongzhineirong.aspx.cs" Inherits="tzManager_tongzhineirong" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>通知内容</title>
<style type="text/css"> 
    <!--
    body {
    	margin-top: 2px;
    }
    -->
    div.RoundedCorner{background: #5AAE18}
    b.rtop, b.rbottom{display:block;background: #FFF} 
    b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
    b.r1{margin: 0 4px}
    b.r2{margin: 0 3px} 
    b.r3{margin: 0 2px} 
    b.rtop b.r4, {margin: 0 1px;height: 1px}
    .style1 {
	    font-size: 13px;
	    color: #FFFFFF;
        font-weight: bold;
    } 
    </style>
    <script language="javascript" type="text/javascript">

    </script>
    
    <link href="../css/link.css" rel="stylesheet" type="text/css" />

    <% 
        //从request中取出swid 并转换成int型       
        string id = this.Request["sw_id"];
        int sw_id = Int32.Parse( id);
        //查询数据库
        COM.OA.Entity.sendword sw = COM.OA.BLL.sendwordBLL.Select(sw_id,true,false);
        //放入页面文档框
        this.lblTitle.Text = sw.sw_title;
        this.lblTime.Text = sw.sw_releasetime.ToString();
        //将reads（阅读次数加1）
        int r = sw.sw_reads+1;
        //放入实体中
        sw.sw_reads = r;
        //修改实体
        COM.OA.BLL.sendwordBLL.Update(sw);
        //分别放入页面文档框中
        this.lblReads.Text = r.ToString();        
        this.lblContent.Text = sw.sw_content;
        System.Collections.Generic.IList<COM.OA.Entity.employee> el = COM.OA.BLL.employeeBLL.Select("em_id=" + sw.users.u_em_id);
        COM.OA.Entity.employee e = el[0];
        this.lblName.Text = e.em_name;
        %>
</head>
<body>
<form action="" runat="server" method="post" name="form1" onsubmit="return dis()"  id="Form1">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <table width="96%" border="0" cellspacing="0" cellpadding="0">
             <tr>
                  <td width="33%" valign="middle">&nbsp;</td>
                <td width="47%" valign="middle"><div align="right">
                    <asp:TextBox ID="txtwhere" runat="server"></asp:TextBox>
                    <asp:Button ID="btnselect" runat="server" OnClick="btnselect_Click1" Text="查 询" />&nbsp;
                  </div></td>
              <td width="3%"><div align="center">
                  &nbsp;<img alt="" src="../images/huiyan/fabutongzhi.gif" /></div></td>
              <td width="7%"><span class="style4"><a href="../tzManager/addtz.aspx" class="style4">发布通知</a></span></td>
              <td width="2%"><span class="style4">
                  <img alt="" src="../images/huiyan/tongzhiguanli.gif" /></span></td>
              <td width="7%"><div align="center" class="style4"><a href="../tzManager/guanlitongzhi.aspx">通知管理</a> </div></td>
            </tr>
          </table>
      </td>
    </tr>
    </table>
    <div class="RoundedCorner" style="text-align: center">
    <b class="rtop"><b class="r1"></b><b class="r2"></b>
                <b class="r3"></b><b class="r4"></b></b> <span class="style1">通 知 内 容</span></div>   
    <table border="0" cellpadding="0" cellspacing="0" style="word-break: break-all" width="100%">
        <tr>
            <td>
                <div align="center">
                    <b>
                <asp:Label ID="lblTitle" runat="server"></asp:Label><br />
                    </b><span class="style36">
                发布时间：<asp:Label ID="lblTime" runat="server"></asp:Label>&nbsp; 点击：<asp:Label ID="lblReads"
                    runat="server"></asp:Label></span></div>
            </td>
        </tr>
        <tr>
            <td>
                <hr color="#5aae18" size="1" width="96%" />
            </td>
        </tr>
    </table>
    <p align="left">
        <asp:Label ID="lblContent" runat="server"></asp:Label></p>
    <p align="right">
        &nbsp;</p>
    <p align="left">
    </p>
    <p align="left" style="text-align: center">
        <br />
        <span class="style36">发布人:&nbsp;&nbsp;<asp:Label ID="lblName" runat="server"></asp:Label></span><br/>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        
        <tr>
        <td></td>        
        <td align="center">
            <img src="../images/huiyan/up.gif" /><a href="javascript:history.go(-1)">返 回</a>
        </td>
        <td></td>
        </tr>
        </table>
    </p>
        
</form>    
</body>
</html>
